'''
enumerate:它允许我们遍历数据并自动计数，
'''
#方式1:默认的计数位置从零开始
# for i,values in enumerate(["w","o","a","i","n","i"]):
#     print(i,values)

#方式2：设置计数的位置从1开始
for i,values in enumerate(["w","o","a","i","n","i"],1):
    print(i,values)